package com.kundi.dooradmin.mapper;

import com.kundi.dooradmin.entity.Team;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Author 赵恒
 * Date 2020/7/10
 */
public interface TeamMapper extends Mapper<Team> {
    @Select("select id, title, name, position, content from tb_team")
    List<Team> getAll();

    @Select("select id, title, name, position, content from tb_team where id = #{id}")
    Team getTeamNoImage(@Param(value = "id") Integer id);
}
